package ead.cs.repository;

import ead.cs.domain.Shipment;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;

public interface ShipmentRepository extends MongoRepository<Shipment, String> {

    @Query("{'payment._id': {$oid : ?0}}")
    Shipment findByPaymentId(String paymentId);

}
